<template>
  <div class="notify-demo">
    <h3 class="title">基本</h3>
    <div>
      <d-button @click="showNotify">打开notify</d-button>
      <div v-if="isShow" class="d-notify d-notify-show">
        <div class="d-notify-mask"></div>
        <div class="d-notify-container d-notify-container-show">
            <div class="d-notify-content">
              <i class="d-icon-close" @click="hideNotify"></i>
              notify测试
            </div>
        </div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'notifyDemo',
  data () {
    return {
      isShow: false
    }
  },
  methods: {
    showNotify () {
      this.isShow = true
    },
    hideNotify () {
      this.isShow = false
    }
  }
}
</script>

<style lang="stylus" scoped>
// .notify-demo
</style>
